<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="forumList">
	<table border="1" cellspacing="0" cellpadding="2" class="body" width="100%">
	<tr><td colspan="3" align="center">Risulti iscritto a <xsl:value-of select="@total"/> forum</td></tr>
	<xsl:for-each select="forum">
	<tr>
	<td width="100%"><a href="{/forumList/@baseUrl}forumShow.aspx?forumid={@ID}" class="body_10px_red"><xsl:value-of select="@title"/></a> (creato da <A href="mailto:{@owneremail}"><xsl:value-of select="@ownername"/></A>)</td>
	<td width="100%">
	<xsl:choose>
		<xsl:when test='/forumList/@defaultForum=@ID'>
			<span class="body_10px_blue">Forum di default</span>
		</xsl:when>
		<xsl:otherwise>
			<a href="{/forumList/@baseUrl}myForums.aspx?forumid={@ID}&amp;affectNick={/forumList/@usernick}&amp;affectForum={@ID}&amp;setAsDefault=1" class="body_10px_red">Mostralo come default</a>
		</xsl:otherwise>
	</xsl:choose>
	</td>
	<xsl:choose>
		<xsl:when test='/forumList/@userid=@ownerid'>
			<td align="right"><font class="fakeA" onmouseover="ShowTooltipRight('1remove');" onmouseout="HideTooltip('1remove');">Rimuovimi!</font></td>
		</xsl:when>
		<xsl:otherwise>
			<td align="right"><a href="{/forumList/@baseUrl}myForums.aspx?forumid={@ID}&amp;affectNick={/forumList/@usernick}&amp;affectEmail={/forumList/@useremail}&amp;deleteUser=1" class="body_10px_red">Rimuovimi!</a></td>		</xsl:otherwise>
	</xsl:choose>
	</tr>
	</xsl:for-each>
	</table>
<DIV CLASS="reminderTooltip" style="width:165;" ID='tt1remove'>
Non puoi rimuoverti dai forum di cui sei gestore.
</DIV>
</xsl:template>


</xsl:stylesheet>